package org.szy.plugin.gen.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import org.szy.core.common.entity.BaseEntity;
import org.szy.core.common.listener.BaseInsertListener;
import org.szy.core.common.listener.BaseUpdateListener;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 生成配置 实体类。
 *
 * @author sunzhiyang
 * @since 2023-06-14
 */
@Table(value = "gen_config", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class)
public class GenConfig extends BaseEntity {

    /**
     * 基础ID
     */
    private Long basicId;

    /**
     * 是否主键
     */
    private Integer isTableKey;

    /**
     * 字段
     */
    private String fieldName;

    /**
     * 名称
     */
    private String fieldRemark;

    /**
     * 字段长度
     */
    private String fieldSize;

    /**
     * 类型
     */
    private String fieldType;

    /**
     * 实体类型
     */
    private String fieldJavaType;

    /**
     * 作用类型
     */
    private String effectType;

    /**
     * 字典
     */
    private String dictTypeCode;

    /**
     * 列表显示
     */
    private Integer whetherTable;

    /**
     * 列省略
     */
    private Integer whetherRetract;

    /**
     * 是否增改
     */
    private Integer whetherAddUpdate;

    /**
     * 必填
     */
    private Integer whetherRequired;

    /**
     * 查询
     */
    private Integer queryWhether;

    /**
     * 查询方式
     */
    private String queryType;

    /**
     * 排序
     */
    private Integer sortCode;

    public Long getBasicId() {
        return basicId;
    }

    public void setBasicId(Long basicId) {
        this.basicId = basicId;
    }

    public Integer getIsTableKey() {
        return isTableKey;
    }

    public void setIsTableKey(Integer isTableKey) {
        this.isTableKey = isTableKey;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldRemark() {
        return fieldRemark;
    }

    public void setFieldRemark(String fieldRemark) {
        this.fieldRemark = fieldRemark;
    }

    public String getFieldSize() {
        return fieldSize;
    }

    public void setFieldSize(String fieldSize) {
        this.fieldSize = fieldSize;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldJavaType() {
        return fieldJavaType;
    }

    public void setFieldJavaType(String fieldJavaType) {
        this.fieldJavaType = fieldJavaType;
    }

    public String getEffectType() {
        return effectType;
    }

    public void setEffectType(String effectType) {
        this.effectType = effectType;
    }

    public String getDictTypeCode() {
        return dictTypeCode;
    }

    public void setDictTypeCode(String dictTypeCode) {
        this.dictTypeCode = dictTypeCode;
    }

    public Integer getWhetherTable() {
        return whetherTable;
    }

    public void setWhetherTable(Integer whetherTable) {
        this.whetherTable = whetherTable;
    }

    public Integer getWhetherRetract() {
        return whetherRetract;
    }

    public void setWhetherRetract(Integer whetherRetract) {
        this.whetherRetract = whetherRetract;
    }

    public Integer getWhetherAddUpdate() {
        return whetherAddUpdate;
    }

    public void setWhetherAddUpdate(Integer whetherAddUpdate) {
        this.whetherAddUpdate = whetherAddUpdate;
    }

    public Integer getWhetherRequired() {
        return whetherRequired;
    }

    public void setWhetherRequired(Integer whetherRequired) {
        this.whetherRequired = whetherRequired;
    }

    public Integer getQueryWhether() {
        return queryWhether;
    }

    public void setQueryWhether(Integer queryWhether) {
        this.queryWhether = queryWhether;
    }

    public String getQueryType() {
        return queryType;
    }

    public void setQueryType(String queryType) {
        this.queryType = queryType;
    }

    public Integer getSortCode() {
        return sortCode;
    }

    public void setSortCode(Integer sortCode) {
        this.sortCode = sortCode;
    }


}
